package com.tf8.treasure.mapper;

import com.tf8.treasure.entity.ResourceArticle;
import com.tf8.treasure.entity.ResourceArticleExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

@Mapper
public interface ResourceArticleMapper {
    int countByExample(ResourceArticleExample example);

    int deleteByExample(ResourceArticleExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ResourceArticle record);

    int insertSelective(ResourceArticle record);

    List<ResourceArticle> selectByExampleWithBLOBs(ResourceArticleExample example);

    List<ResourceArticle> selectByExample(ResourceArticleExample example);

    ResourceArticle selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ResourceArticle record, @Param("example") ResourceArticleExample example);

    int updateByExampleWithBLOBs(@Param("record") ResourceArticle record, @Param("example") ResourceArticleExample example);

    int updateByExample(@Param("record") ResourceArticle record, @Param("example") ResourceArticleExample example);

    int updateByPrimaryKeySelective(ResourceArticle record);

    int updateByPrimaryKeyWithBLOBs(ResourceArticle record);

    int updateByPrimaryKey(ResourceArticle record);

    List<ResourceArticle> selectPageByExample(@Param("example") ResourceArticleExample example, @Param("pageable") Pageable pageable);
}